package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.media.MediaPlayer;
import android.text.method.LinkMovementMethod;
import android.text.util.Linkify;
import android.view.View;
import android.widget.TextView;
import android.os.Bundle;
import android.widget.Toast;


public class TextViewActivity extends AppCompatActivity {
    private TextView m;
    private TextView n;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_text_view);
        n = findViewById(R.id.T3);
        n.setAutoLinkMask(Linkify.WEB_URLS);
        n.setMovementMethod(LinkMovementMethod.getInstance());


        //n.setText(span);
    }
    public void Sow(){

    }

    public void Sow(View vw) {
        Toast.makeText(this,"我不是人",Toast.LENGTH_LONG).show();
        MediaPlayer mp = MediaPlayer.create(this, R.raw.emm);
        mp.start();
    }
}
